<template>
  <div>
    <header class="header-back">
      <i class="iconfont back" @click="goBack">&#xe624;</i>
      <div class="title-div">&nbsp;</div>
      <br style="clear: both;"/>
    </header>
    <div class="desc-div">
      <div class="desc">下单已成功!</div>
      <p class="desc-p">稍后会有工作人员与您联系，请保持电话畅通！</p>
      <div class="btn-div" @click="getList">点击查看</div>
    </div>
  </div>
</template>

<script>
export default{
  data () {
    return {}
  },
  mounted () {
    let that = this
    mui.init({
      keyEventBind: {
        backbutton: true  //关闭back按键监听
      }
    })
    mui.back = function () {
      that.$router.push({
        path: '/goods'
      })
      error
    }
  },
  methods: {
    goBack () {
      this.$router.push('/goods')
    },
    getList () {
      this.$router.push('/orderPage')
    }
  },
  created: function () {
  }
}
</script>

<style scoped>
  .header-back{
    height: 2rem;
    position: fixed;
    z-index: 10;
    box-sizing: border-box;
    left: 0;
    right: 0;
    top: 0;
    background: #fff;
  }
  .back{
    line-height: 2rem;
    left: .5rem;
    font-size: .8rem;
    position: absolute;
  }
  .title-div{
    line-height: 2rem;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
  }
  .desc-div{
    text-align: center;
    margin: 2.2rem 3% 0;
    background: #ffffff;
    padding: .5rem;
    box-shadow: 0 0 0.3rem #b5b5b6;
    border-radius: .3rem;
  }
  .desc{
    color: #E6A23C;
    font-size: 1.2rem;
  }
  .desc-p{
    font-size: .8rem;
    margin-top: .5rem;
  }
  .btn-div{
    border-radius: .5rem;
    border: 1px solid #909399;
    width: 7rem;
    margin: 1rem auto 0;
    line-height: 2rem;
    background: #e94c75;
    color: #fff;
  }
</style>
